package ltd.followkba.comment.banners;

import android.os.Bundle;
import androidx.appcompat.app.AppCompatActivity;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;

import java.util.ArrayList;
import java.util.List;

import ltd.followkba.R;

//public class InstructionsActivity extends AppCompatActivity {
//    private BannerView bvInstructions;
//
//    private int[] imgs = {R.drawable.tips0,R.drawable.tips1,R.drawable.tips2,R.drawable.tips3,R.drawable.tips4,};
//    private List<View> viewList;
//
//    @Override
//    protected void onCreate(Bundle savedInstanceState) {
//        super.onCreate(savedInstanceState);
//        setContentView(R.layout.activity_instructions);
//
//
//
//        viewList = new ArrayList<View>();
//        for (int i = 0; i < imgs.length; i++) {
//            ImageView image = new ImageView(this);
//            image.setLayoutParams(new ViewGroup.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.MATCH_PARENT));
//            //设置显示格式
//            image.setScaleType(ImageView.ScaleType.CENTER_CROP);
//            image.setImageResource(imgs[i]);
//            viewList.add(image);
//        }
//        bvInstructions = (BannerView) findViewById(R.id.bvInstructions);
//        bvInstructions.startLoop(true);
//
//        bvInstructions.setViewList(viewList);
//
//    }
//}
